package com.aspose.cells;

import java.util.ArrayList;

class zbo implements zafo {
   private zif t;
   private int u;
   private boolean v;
   private zalv w;
   private zas x;
   private int y;
   private boolean z = true;
   private int A;
   private double B;
   private int C;
   private boolean D;
   private boolean E;
   private boolean F;
   private zalv G;
   private zalv H;
   private int I;
   private double J;
   private int K;
   private double L;
   private int M;
   private double N;
   private int O;
   private double P;
   private int Q;
   private zbtj R;
   private int S;
   private boolean T;
   private int U;
   private zbtn V;
   private boolean W;
   private boolean X;
   private boolean Y;
   private boolean Z;
   private zrm aa;
   ArrayList a = new ArrayList();
   double b;
   double c;
   double d;
   double e;
   private int ab;
   private int ac;
   float f = 0.0F;
   float g = 0.0F;
   float h = 0.0F;
   float i = 0.0F;
   float j = 0.0F;
   float k = 0.0F;
   ArrayList l;
   int m = 0;
   boolean n = true;
   boolean o = false;
   private int ad;
   private boolean ae = false;
   private int af = 3;
   boolean p = false;
   boolean q = false;
   boolean r = false;
   boolean s = false;
   private double ag = 10.0D;
   private String ah = "";
   private com.aspose.cells.b.a.b.zo ai = com.aspose.cells.b.a.b.zo.a();
   private com.aspose.cells.b.a.b.zo aj = com.aspose.cells.b.a.b.zo.a();
   private boolean ak = false;

   int a() {
      return this.ad;
   }

   void a(int var1) {
      this.ad = var1;
   }

   boolean b() {
      return this.d() == 0 || this.d() == 2;
   }

   zbo(zif var1, int var2) {
      this.t = var1;
      this.u = var2;
      this.v = true;
      this.w = new zalv(var1);
      this.x = new zas(var1);
      this.y = 1;
      this.A = 1;
      this.C = 0;
      this.G = new zalv(var1);
      this.H = new zalv(var1);
      this.H.a(0);
      if (var2 == 0) {
         this.G.a(0);
      } else if (var2 == 2) {
         this.G.a(0);
      } else if (var2 != 1) {
         if (var2 == 3) {
            this.G.a(0);
         } else if (var2 == 4) {
            this.G.a(0);
         }
      }

      this.V = new zbtn(var1, this, 9);
      this.D = false;
      this.E = false;
      this.F = true;
      this.I = 3;
      this.J = 0.0D;
      this.K = 1;
      this.L = 0.0D;
      this.M = 2;
      this.N = 0.0D;
      this.O = 1;
      this.P = 0.0D;
      this.Q = 2;
      this.R = new zbtj(this);
      this.S = 1;
      this.T = true;
      this.U = 1;
      this.W = true;
      this.X = true;
      this.Y = true;
      this.Z = true;
      this.l = new ArrayList();
      this.ab = 4;
      this.ac = 3;
      this.aa = new zrm(var1, this, 13);
   }

   zif c() {
      return this.t;
   }

   int d() {
      return this.u;
   }

   int e() {
      return this.af;
   }

   void b(int var1) {
      this.af = var1;
   }

   public boolean f() {
      return this.v;
   }

   public void a(boolean var1) {
      this.v = var1;
   }

   public zalv g() {
      return this.w;
   }

   public zahf h() {
      return this.w;
   }

   public zafn i() {
      return this.x;
   }

   public int j() {
      return this.y;
   }

   public void c(int var1) {
      this.y = var1;
      this.e(false);
   }

   public int k() {
      return this.A;
   }

   public void d(int var1) {
      this.A = var1;
   }

   public double l() {
      return this.B;
   }

   public void a(double var1) {
      this.B = var1;
      this.C = 2;
   }

   public int m() {
      return this.C;
   }

   public void e(int var1) {
      this.C = var1;
      if (var1 == 1) {
         this.o = true;
      }

   }

   public boolean n() {
      return this.D;
   }

   public void b(boolean var1) {
      this.D = var1;
   }

   public double o() {
      return this.ag;
   }

   public void b(double var1) {
      this.ag = var1;
   }

   public boolean p() {
      return this.E;
   }

   public void c(boolean var1) {
      this.E = var1;
   }

   public boolean q() {
      return this.F;
   }

   public void d(boolean var1) {
      this.F = var1;
   }

   public boolean r() {
      return this.z;
   }

   public void e(boolean var1) {
      this.z = var1;
   }

   zalv s() {
      return this.G;
   }

   public zahf t() {
      return this.G;
   }

   zalv u() {
      return this.H;
   }

   public zahf v() {
      return this.H;
   }

   public int w() {
      return this.I;
   }

   public void f(int var1) {
      this.I = var1;
   }

   public double x() {
      return this.J;
   }

   public void c(double var1) {
      if (var1 > 0.0D) {
         this.J = var1;
         this.Y = false;
      }

   }

   public int y() {
      return this.K;
   }

   public void g(int var1) {
      this.K = var1;
   }

   public double z() {
      return this.L;
   }

   public void d(double var1) {
      this.L = var1;
      this.X = false;
   }

   public int A() {
      return this.M;
   }

   public void h(int var1) {
      this.M = var1;
   }

   public double B() {
      return this.N;
   }

   public void e(double var1) {
      this.N = var1;
      this.j(false);
   }

   public int C() {
      return this.O;
   }

   public void i(int var1) {
      this.O = var1;
   }

   public double D() {
      return this.P;
   }

   public void f(double var1) {
      this.P = var1;
      this.g(false);
   }

   public int E() {
      return this.Q;
   }

   public void j(int var1) {
      this.Q = var1;
   }

   zbtj F() {
      return this.R;
   }

   public zaif G() {
      return this.R;
   }

   public int H() {
      return this.S;
   }

   public void k(int var1) {
      if (var1 > 0) {
         this.S = var1;
      }

   }

   public boolean I() {
      return this.T;
   }

   public void f(boolean var1) {
      this.T = var1;
   }

   public int J() {
      return this.U;
   }

   public void l(int var1) {
      if (var1 > 0) {
         this.U = var1;
      }

   }

   zbtn K() {
      return this.V;
   }

   public zaig L() {
      return this.V;
   }

   public boolean M() {
      return this.W;
   }

   public void g(boolean var1) {
      this.W = var1;
   }

   public boolean N() {
      return this.X;
   }

   public void h(boolean var1) {
      this.X = var1;
   }

   public boolean O() {
      return this.Y;
   }

   public void i(boolean var1) {
      this.Y = var1;
   }

   public boolean P() {
      return this.Z;
   }

   public void j(boolean var1) {
      this.Z = var1;
   }

   zrm Q() {
      return this.aa;
   }

   public zagp R() {
      return this.aa;
   }

   public void a(String var1) {
      this.ah = var1;
   }

   double S() {
      return this.n() ? zbuk.e(this.z()) : this.z();
   }

   double T() {
      return this.n() ? zbuk.e(this.D()) : this.D();
   }

   double U() {
      return this.n() ? zbuk.e(this.l()) : this.l();
   }

   double V() {
      return this.n() ? zbuk.e(this.x()) : this.x();
   }

   double W() {
      return this.n() ? zbuk.e(this.B()) : this.B();
   }

   double g(double var1) {
      if (var1 > this.S()) {
         var1 = this.S();
      }

      if (var1 < this.T()) {
         var1 = this.T();
      }

      return var1;
   }

   int X() {
      return this.ab;
   }

   void m(int var1) {
      this.ab = var1;
   }

   int Y() {
      return this.ac;
   }

   void n(int var1) {
      this.ac = var1;
   }

   int Z() {
      boolean var1 = false;
      if (this.G().a() != null) {
         int var2 = zbuk.c((double)(this.aa() * 0.2F));
         return var2 < 2 ? 2 : var2;
      } else {
         return 0;
      }
   }

   float aa() {
      return (float)zbuk.a((double)this.c().ap().a().a(this.G().a()));
   }

   zbo ab() {
      zbo var1 = null;
      if (this.d() == 0) {
         var1 = this.c().E();
      } else if (this.d() == 2) {
         var1 = this.c().G();
      } else if (this.d() == 1) {
         var1 = this.c().e();
      } else if (this.d() == 3) {
         var1 = this.c().g();
      }

      return var1;
   }

   void a(com.aspose.cells.b.a.b.zo var1) {
      this.ai = var1;
   }

   void b(com.aspose.cells.b.a.b.zo var1) {
      this.aj = var1;
   }

   protected void finalize() throws Exception {
      this.k(false);
   }

   public void ac() {
      this.k(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void k(boolean var1) {
      if (!this.ak) {
         if (var1) {
            if (this.R != null) {
               this.R.m();
            }

            if (this.V != null) {
               this.V.k();
            }

            if (this.aa != null) {
               this.aa.m();
            }
         }

         this.ak = true;
      }

   }
}
